// 蜂窝蜜造平台生成代码，如手工更改，请添加到 .beeignore 忽略生成

package com.fowo.api.costAccounting.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;

/**
 * CostConfig
 */
@Data
@TableName(value = "cost_config", autoResultMap = true)
@Schema(title = "成本配置")
public class CostConfig implements Serializable {

  /**
   * 编号
   */
  @TableField(value = "`id`")
  @TableId(type = IdType.ASSIGN_ID)
  @Schema(title = "编号")
  private Long id;

  /**
   * 模板名称
   */
  @TableField(value = "`name`")
  @Schema(title = "模板名称")
  private String name;

  /**
   * 创建时间
   */
  @TableField(value = "`create_time`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "创建时间")
  private java.util.Date createTime;

  /**
   * 创建人
   */
  @TableField(value = "`create_user`")
  @Schema(title = "创建人")
  private Long createUser;

  /**
   * 更新时间
   */
  @TableField(value = "`last_update_time`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "更新时间")
  private java.util.Date lastUpdateTime;

  /**
   * 更新人
   */
  @TableField(value = "`last_update_user`")
  @Schema(title = "更新人")
  private Long lastUpdateUser;

  /**
   * 删除标记
   */
  @TableField(value = "`del_flag`")
  @TableLogic
  @Schema(title = "删除标记")
  private Boolean delFlag;

  /**
   * 配置说明备注
   */
  @TableField(value = "`remarks`")
  @Schema(title = "配置说明备注")
  private String remarks;

  /**
   * 模板编号
   */
  @TableField(value = "`serial_number`")
  @Schema(title = "模板编号")
  private String serialNumber;

  /**
   * 入库查询sq
   */
  @TableField(value = "`select_sql`")
  @Schema(title = "入库查询sq")
  private String selectSql;

  /**
   * 维度类型
   */
  @TableField(value = "`type`")
  @Schema(title = "维度类型")
  private Integer type;
}
